package com.igeek.ch01;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @package com.igeek.ch01
 * @Description
 * @Author LittlePunk [296526219@qq.ccom]
 * @Version 2022.1
 * @Date 2023/11/15 13:57
 */
public class MainTest {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(MyConfig.class);
        System.out.println("---------------------");
        ICount count = ac.getBean("count", ICount.class);

        int add = count.add(1,2);
        System.out.println("----------------------");
        int sub = count.sub(10,2);
    }
}
